package top.yekongle.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yekongle.springcloud.service.IMessageProvider;

import javax.annotation.Resource;

/**
 * @author Hank Lau
 * @date 2021/6/10 00:18
 */
@RestController
public class SendMessageController
{
    @Resource
    private IMessageProvider messageProvider;

    @GetMapping(value = "/sendMessage")
    public String sendMessage()
    {
        return messageProvider.send();
    }

}
